/**
 * 审核类型枚举常量
 */
package com.msh.platform.elm.common.constants;

public enum ExamineType {
	pass("1","审核通过"),
	noPass("2","审核不通过");
 
	private String code;
	private String name;
  
	ExamineType(String code, String name) {
		this.code = code;
		this.name = name;
	}
	public String getCode(){
		return code;
	}
 
	public String getName(){
		return name;
	}
	
	public static ExamineType getEnumByCode(String code){
	    for(ExamineType item : ExamineType.values()){
	      if(item.getCode().equals(code)){
	        return item;
	      }
	    }
	    return null;
    }
}
